package com.earthea.application.web.controller.monitor;

import com.earthea.application.common.entity.BaseResult;
import com.earthea.common.system.Server;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控
 */
@RestController
@RequestMapping("/rest/monitor/server")
public class ServerController {
    @PreAuthorize("@ss.hasPermi('monitor:server:list')")
    @GetMapping()
    public BaseResult getInfo() throws Exception {
        return BaseResult.success(new Server());
    }
}
